<?php

namespace YouBaoLian\Application\Response;

use YouBaoLian\Http\Response;

class VehicleNoCarProductResponse extends Response
{

    /**
     * 是否支持投保随车产品
     * @var string $insuredWithCarProduct
     */
    private $insuredWithCarProduct = '';

    /**
     * 产品方案列表
     * @var array $productPlans
     */
    private $productPlans = [];

    /**
     * 产品方案列表
     * @var array $productTypes
     */
    private $productTypes = [];


    public function build(): Response
    {
        parent::build();
        $this->insuredWithCarProduct = $this->getBizContent('insuredWithCarProduct', []);
        $this->productPlans = $this->getBizContent('productPlans', []);
        $this->productTypes = $this->getBizContent('productTypes', []);

        return $this;
    }

    /**
     * @return string
     */
    public function getInsuredWithCarProduct(): string
    {
        return $this->insuredWithCarProduct;
    }

    /**
     * @return array
     */
    public function getProductPlans(): array
    {
        return $this->productPlans;
    }

    /**
     * @return array
     */
    public function getProductTypes(): array
    {
        return $this->productTypes;
    }


}
